package com.qzsoft.zhjd.exp.modules.asphaltsummary.controller;

import java.util.Map;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qzsoft.jeemis.common.utils.Result;
import com.qzsoft.zhjd.common.utils.ResultUtils;
import com.qzsoft.zhjd.exp.modules.asphaltsummary.dto.AsphaltsummaryDto;
import com.qzsoft.zhjd.exp.modules.asphaltsummary.service.AsphaltsummaryService;

/**
 * @ClassName: AsphaltsummaryController
 * @Description: 沥青三大指标控制器
 * @author linhuawei
 * @since 2021-04-25
 */
@RestController
@RequestMapping("/api/asphaltsummar")
public class AsphaltsummaryController {

    @Autowired
    private AsphaltsummaryService asphaltsummaryService;

    /**
     * @Title: page
     * @Description: 获取沥青三大指标分页列表
     * @param params 查询条件
     * @return Result 沥青三大指标分页列表
     */
    @RequiresPermissions("api:asphaltsummar:page")
    @GetMapping("page")
    public Result<IPage<AsphaltsummaryDto>> page(@RequestParam Map<String, Object> params) {
        IPage<AsphaltsummaryDto> page = asphaltsummaryService.page(params);
        return ResultUtils.ok(page);
    }

}
